package com.atzz.service.Impl;

import com.atzz.anno.Bean;
import com.atzz.anno.Di;
import com.atzz.dao.UserDao;
import com.atzz.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Bean
public class UserServiceImpl implements UserService {

    @Di
    private UserDao userDao;

    @Override
    public void add() {
        System.out.println("service");
        userDao.add();
    }
}
